"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var vue_router_1 = require("vue-router");
var HomePage_vue_1 = __importDefault(require("../pages/HomePage.vue"));
var UserLoginPage_vue_1 = __importDefault(require("../pages/user/UserLoginPage.vue"));
var UserRegisterPage_vue_1 = __importDefault(require("../pages/user/UserRegisterPage.vue"));
var UserManagementPage_vue_1 = __importDefault(require("../pages/admin/UserManagementPage.vue"));
var accessEnum_1 = __importDefault(require("../access/accessEnum"));
var noAuth_vue_1 = __importDefault(require("../pages/noAuth.vue"));
var AddPicturePage_vue_1 = __importDefault(require("../pages/AddPicturePage.vue"));
var PictureDetailPage_vue_1 = __importDefault(require("../pages/PictureDetailPage.vue"));
var PictureManagePage_vue_1 = __importDefault(require("../pages/admin/PictureManagePage.vue"));
var AddPictureBatchPage_vue_1 = __importDefault(require("../pages/AddPictureBatchPage.vue"));
var SpaceManagePage_vue_1 = __importDefault(require("../pages/admin/SpaceManagePage.vue"));
var AddSpacePage_vue_1 = __importDefault(require("../pages/AddSpacePage.vue"));
var MySpacePage_vue_1 = __importDefault(require("../pages/MySpacePage.vue"));
var SpaceDetailPage_vue_1 = __importDefault(require("../pages/SpaceDetailPage.vue"));
var SpaceAnalyzePage_vue_1 = __importDefault(require("../pages/SpaceAnalyzePage.vue"));
var SpaceUserManagePage_vue_1 = __importDefault(require("../pages/admin/SpaceUserManagePage.vue"));
var router = (0, vue_router_1.createRouter)({
    history: (0, vue_router_1.createWebHistory)(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            name: '主页',
            component: HomePage_vue_1.default,
        },
        {
            path: '/admin/userManage',
            name: '用户管理',
            component: UserManagementPage_vue_1.default,
            meta: {
                access: accessEnum_1.default.ADMIN,
            },
        },
        {
            path: '/user/login',
            name: '用户登录',
            component: UserLoginPage_vue_1.default,
        },
        {
            path: '/user/register',
            name: '用户注册',
            component: UserRegisterPage_vue_1.default,
        },
        {
            path: '/noAuth',
            name: '无权限页面',
            component: noAuth_vue_1.default,
        },
        {
            path: '/add_picture',
            name: '创建图片',
            component: AddPicturePage_vue_1.default,
        },
        {
            path: '/picture/:id',
            name: '图片详情',
            component: PictureDetailPage_vue_1.default,
            props: true,
        },
        {
            path: '/admin/pictureManage',
            name: '图片管理',
            component: PictureManagePage_vue_1.default,
        },
        {
            path: '/add_picture/batch',
            name: '批量创建图片',
            component: AddPictureBatchPage_vue_1.default,
        },
        {
            path: '/admin/spaceManage',
            name: '空间管理',
            component: SpaceManagePage_vue_1.default,
        },
        {
            path: '/add_space',
            name: '创建空间',
            component: AddSpacePage_vue_1.default,
        },
        {
            path: '/my_space',
            name: '我的空间',
            component: MySpacePage_vue_1.default,
        },
        {
            path: '/space/:id',
            name: '空间详情',
            component: SpaceDetailPage_vue_1.default,
            props: true,
        },
        {
            path: '/space_analyze',
            name: '空间分析',
            component: SpaceAnalyzePage_vue_1.default,
        },
        {
            path: '/spaceUserManage/:id',
            name: '空间成员管理',
            component: SpaceUserManagePage_vue_1.default,
            props: true,
        },
    ],
});
exports.default = router;
